[NTG-context] Re: Pass string into text background graphic

2023-08-11 Thread Hans Hagen
{\xmldocument}{html|body}{xml:*} \xmlsetsetup{\xmldocument}{div}{xml:*}\stopxmlsetups \xmlregistersetup{xml:xhtml} \startxmlsetups xml:html \xmlflush{#1}\stopxmlsetups \startxmlsetups xml:body \xmlflush{#1}\stopxmlsetups \startxmlsetups xml:div \setvariable{div}{\xmlatt{#1}{class}}{#1

[NTG-context] Pass string into text background graphic

2023-08-11 Thread Thangalin
:*} \xmlsetsetup{\xmldocument}{div}{xml:*}\stopxmlsetups \xmlregistersetup{xml:xhtml} \startxmlsetups xml:html \xmlflush{#1}\stopxmlsetups \startxmlsetups xml:body \xmlflush{#1}\stopxmlsetups \startxmlsetups xml:div \setvariable{div}{\xmlatt{#1}{class}}{#1} \start[\xmlatt{#1}{class}]\xmlflush{#1}\stop

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen via ntg-context
:*}    \xmlsetsetup{\xmldocument}{div}{xml:*} \stopxmlsetups \xmlregistersetup{xml:xhtml} \startxmlsetups xml:html    \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:body    \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:div    \setvariable{div}{\xmlatt{#1}{class}}{#1}    \start[\xmlatt{#1}{class

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen
:*} \stopxmlsetups \xmlregistersetup{xml:xhtml} \startxmlsetups xml:html \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:body \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:div \setvariable{div}{\xmlatt{#1}{class}}{#1} \start[\xmlatt{#1}{class}]\xmlflush{#1}\stop \stopxmlsetups

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Thangalin
} \startxmlsetups xml:html \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:body \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:div \setvariable{div}{\xmlatt{#1}{class}}{#1} \start[\xmlatt{#1}{class}]\xmlflush{#1}\stop \stopxmlsetups \definestartstop[concurrent][ before={TITLE: \xmlatt

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen
On 8/10/2023 9:10 AM, Thangalin wrote: Environments for the DIV element gets translated using: \startxmlsetups xml:div \setvariable {div} {\xmlatt{#1}{class}} {#1} \start[\xmlatt{#1}{class}]\xmlflush{#1}\stop \stopxmlsetups \setMPtext{1}{\usermap[concurrent.title]} \setMPtext{2

Re: [NTG-context] Simple question

2022-05-10 Thread Henning Hraban Ramm via ntg-context
able depending on a mode: \doifmode{simple}{\setvariable{gerben}{level}{simple}} and then \externalfigure[images/\getvariable{gerben}{level}/\currentlanguage/cow] Hraban ___ If your question is of interest to others as w

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-11 Thread Hans Hagen via ntg-context
” to use a variable? You can get rid of the temp variable before the command definition but now you have to access it with a different method in \mymacro, below is one way (LMTX only) but \setvariable and \getvariable work as well. \define[1]\mymacro   {\iftok{#1}{\getvalue{previousmymacro

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-10 Thread Aditya Mahajan via ntg-context
t; You can get rid of the temp variable before the command definition but > > now you have to access it with a different method in \mymacro, below is > > one way (LMTX only) but \setvariable and \getvariable work as well. > > > > \define[1]\mymacro > >   {\iftok{

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-10 Thread Henning Hraban Ramm via ntg-context
it with a different method in \mymacro, below is one way (LMTX only) but \setvariable and \getvariable work as well. \define[1]\mymacro   {\iftok{#1}{\getvalue{previousmymacro}}% same as last time    \else it is different from last time    \fi    \setvalue{previousmymacro}{#1

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-10 Thread Wolfgang Schuster via ntg-context
definition but now you have to access it with a different method in \mymacro, below is one way (LMTX only) but \setvariable and \getvariable work as well. \define[1]\mymacro   {\iftok{#1}{\getvalue{previousmymacro}}% same as last time    \else it is different from last time    \fi

[NTG-context] Adjustment for header and footer

2021-08-22 Thread Fabrice Couvreur via ntg-context
}] \stopsetups \setvariable{headertext}{set}{\directsetup{headertext}} \setvariables [headertext] [title={Devoir maison}, number={2}, day={22}, month={08}, year={2021}, location={Terminale}, time={2 heures}] \starttext \samplefile{lorem} \stoptext

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Hans Hagen
                    \vbox\bgroup% open vbox (\par needed)              } \def\StopBox{\egroup\egroup\egroup% close vbox, framed, hbox              \setvariable{Test}{Height}{\the\ht0}%             }% \startluacode ctx = context function TestBox()     ctx("TeX Box: ")    ctx.copy(false

[NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
needed) } \def\StopBox{\egroup\egroup\egroup% close vbox, framed, hbox \setvariable{Test}{Height}{\the\ht0}% }% \startluacode ctx = context function TestBox() ctx("TeX Box: ")ctx.copy(false,0)ctx.par() ctx("TeX Getvar: ") c

Re: [NTG-context] accessing tex variable on lua side

2020-11-25 Thread Hans Hagen
On 11/25/2020 11:54 AM, Jano Kula wrote: Hello, running in circles I have to give up on such an easy thing as passing a tex variable to lua (knowing everything is stored in lua). \setvariable{test}{something}{} \starttext \getvariable{test}{something}\par % how to access the variable

[NTG-context] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Hello, running in circles I have to give up on such an easy thing as passing a tex variable to lua (knowing everything is stored in lua). \setvariable{test}{something}{} \starttext \getvariable{test}{something}\par % how to access the variable on lua end? \startluacode -- var = \stopluacode

[NTG-context] Lua equivalent of \getvariable{}{}

2020-10-11 Thread Pablo Rodriguez
} c: \cldcontext{c}\\ \doifelse{\cldcontext{c:match("\letterpercent d+")}} {123}{yes}{no}\\ d: \cldcontext{d}\\ \doifelse{\cldcontext{d:match("\letterpercent d+")}} {123}{yes}{no} \stoptext Which is the Lua equivalent of \getvariable{}{}?

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
xml:section > > \doifelse{\xmlatt{#1}{id}}{\selectedtopic} > {\setvariable{xml}{beforesection}{conditional}} > {\setvariable{xml}{beforesection}{}} > > \startsection[title={\xmlatt{#1}{id}}] > \xmlflush{#1} > \stopsection > >

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Wolfgang Schuster
is cleared when your conditional is false. \setuphead [section] [beforesection=\getvariable{xml}{beforesection}] \startxmlsetups xml:section \doifelse{\xmlatt{#1}{id}}{\selectedtopic} {\setvariable{xml}{beforesection}{conditional}} {\setvariable{xml}{beforesection

[NTG-context] Problem with the bottom line of a header

2019-10-22 Thread Fabrice Couvreur
}] [D,month,{ },year] \stopframed}] \stopsetups \setvariable{headertext}{set}{\directsetup{headertext}} \setvariables [headertext] [title={Corrigé du devoir maison}, number={1}, day={22}, month={10}, year={2019}, location={Secondes GTE-GTF}, time

Re: [NTG-context] passing variables/data between context and lua

2019-10-06 Thread Wolfgang Schuster
Rudolf Bahr schrieb am 06.10.2019 um 07:11: Hello Wolfgang, what exactly does the command "\setvariable{martin}{set}{\directsetup{martin}}"? Let's start with a simple example where I set a values with the \setvariables command. \setvariables   [metadata]   [author=Rudolf Bah

Re: [NTG-context] passing variables/data between context and lua

2019-10-05 Thread Rudolf Bahr
ariable("martin","points",points) ; > context.setvariable("martin","answer",answer) ; > \stoplua > \stopsetups > > \setvariable{martin}{set}{\directsetup{martin}} > > \starttext > > \setvariables [martin] [question=4

Re: [NTG-context] defs, variables and dimensions (was: passing variables/data between context and lua)

2019-09-29 Thread Martin Althoff
to write calculations (electro physics and maths) in Lua, I then want to pass the results out to Context. Greetings, Martin > > > \define\question{44} > > \defineexpandable\question{44} > > Would it make sense to use a counter or some other TeX construct? > > Is it b

Re: [NTG-context] passing variables/data between context and lua

2019-09-29 Thread Martin Althoff
too: https://mailman.ntg.nl/pipermail/ntg-context/2012/064326.html That helps too. However I can find little documentation on the \setvariable/s commands. I'll play around with the solution to understand it better. > \defineexpandable\question{44} > A solution which uses only ex

Re: [NTG-context] defs, variables and dimensions

2019-09-28 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 28.09.2019 um 08:53: Am 2019-09-27 um 14:58 schrieb Wolfgang Schuster : \define\question{44} \defineexpandable\question{44} Would it make sense to use a counter or some other TeX construct? Is it better to use \setvariable(s) for simple values than any \def

Re: [NTG-context] defs, variables and dimensions (was: passing variables/data between context and lua)

2019-09-28 Thread Henning Hraban Ramm
> Am 2019-09-27 um 14:58 schrieb Wolfgang Schuster > : > >> \define\question{44} > \defineexpandable\question{44} Would it make sense to use a counter or some other TeX construct? Is it better to use \setvariable(s) for simple values than any \def? Should I use a \newdime

Re: [NTG-context] passing variables/data between context and lua

2019-09-27 Thread Wolfgang Schuster
;points",points) ;     context.setvariable("martin","answer",answer) ;     \stoplua \stopsetups \setvariable{martin}{set}{\directsetup{martin}} \starttext \setvariables [martin] [question=44] Points: \getvariable{martin}{points} The answer is \getvariab

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Hans Hagen
>       \stopframed}] > >      [{\startframed [headerframed] >          [align=flushright,foregroundstyle=] > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] >     

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Fabrice Couvreur
d] > > [align=flushright,foregroundstyle=] > > > > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > > \stopframed}] > > > > \stopsetups > > > > \setvariable{headertext}{set

Re: [NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Aditya Mahajan
}] \stopsetups \setvariable{headertext}{set}{\directsetup{headertext}} \startuseMPgraphic{framewithshadow} path p; p:=origin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)--(0,OverlayHeight)--cycle; fill p shifted (2,-2); fill p withcolor 0.8white; draw p; setbounds currentpicture to p; \stopuseMPgraphic

[NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Fabrice Couvreur
\\ \getvariable{headertext}{location} \stopframed}] [{\startframed [headerframed] [align=flushright,foregroundstyle=] \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] \stopframed}] \stopsetups \setvariable

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Fabrice Couvreur
}] \stopsetups \setvariable{headertext}{set}{\directsetup{headertext}} \startuseMPgraphic{framewithshadow} path p; p:=origin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)--(0,OverlayHeight)--cycle; fill p shifted (2,-2); fill p withcolor 0.8white; draw p; setbounds currentpicture to p

Re: [NTG-context] serial letters

2019-04-09 Thread Wolfgang Schuster
or csv file. \usemodule[letter] \setuplettersection   [opening]   [alternative=setups] \startsetups [letter:section:opening]   \doifelse{\getvariable{address}{sex}}{male}     {Dear Sir,}     {Dear Madam,} \stopsetups \setvariable{address}{set}{\placeletter} \starttext \startlettercontent

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
\stopframed > > }] > > [{ > > \startframed [headerframed] > > [align=flushright,foregroundstyle=\ssx] > >Lycée LA SALLE\\ > > > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Fabrice Couvreur
t; }] > > [{ > > \startframed [headerframed] > [align=flushright,foregroundstyle=\ssx] > >Lycée LA SALLE\\ > > > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > > \stopframed >

Re: [NTG-context] Macro for a header does not work as well

2019-02-18 Thread Otared Kavian
> \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > \stopframed > }] > > \stopsetups > > > \setvariable{headertext}{set}{\directsetup{headertext}} > \setvariables > [headertext] > [title={Devoir

[NTG-context] Macro for a header does not work as well

2019-02-18 Thread Fabrice Couvreur
}] [{ \startframed [headerframed] [align=flushright,foregroundstyle=\ssx] Lycée LA SALLE\\ \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] \stopframed }] \stopsetups \setvariable{headertext}{set}{\directsetup

Re: [NTG-context] Issue with the latest beta of context standalone

2019-02-04 Thread Fabrice Couvreur
stopframed }] [{ \startframed [headerframed] [align=flushright,foregroundstyle=\ssx] Lycée LA SALLE\\ \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] \stopframed }] \stopsetups \setvariable{

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Hans Hagen
LA SALLE\\ \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]     \stopframed     }]   \stopsetups   \setvariable{headertext}{set}{\directsetup{headertext}}   \setvariables   [headertext]   [title

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
ée LA SALLE\\ > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > \stopframed > }] > > \stopsetups > > \setvariable{headertext}{set}{\directsetup{headertext}} > > \setvar

[NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Fabrice Couvreur
}] [{ \startframed [headerframed] [align=flushright,foregroundstyle=\ssx] Lycée LA SALLE\\ \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] \stopframed }] \stopsetups \setvariable{headertext}{set

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-11 Thread Hans Hagen
o sort the buffer containing the data according to some key? Think different ... see end. Best regards: OK %% begin setvariable-getbuffer.tex \startbuffer[talkdata] %% \setvariables[talk]% [speakername={Gauss}, title={Remarks on Number Theory},

Re: [NTG-context] \setvariables and database module

2018-01-30 Thread Otared Kavian
> \startplacefigure[number=no] > \externalfigure[\getvariable{talk}{picture}] > \stopplacefigure > \page > \stopbuffer > > \setvariable{talk}{set}{\getbuffer[pagetalk]} > > \define[3]\maketalk{% > \setvariables[talk]% > [

Re: [NTG-context] \setvariables and database module

2018-01-30 Thread Otared Kavian
ptabulate \startplacefigure[number=no] \externalfigure[\getvariable{talk}{picture}] \stopplacefigure \page \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \define[3]\maketalk{% \setvariables[talk]% [speakername={#1},

Re: [NTG-context] \setvariables and database module

2018-01-30 Thread Wolfgang Schuster
ername}}}[fig:\getvariable{talk}{speakername}] \NC\NR \NC Title \EQ \getvariable{talk}{title} \NC\NR \stoptabulate \startplacefigure[number=no] \externalfigure[\getvariable{talk}{picture}] \stopplacefigure \page \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \define[3]\maketalk{% \setvar

[NTG-context] \setvariables and database module

2018-01-30 Thread Otared Kavian
}] \NC\NR \NC Title \EQ \getvariable{talk}{title}\NC\NR \stoptabulate \startplacefigure[number=no] \externalfigure[\getvariable{talk}{picture}] \stopplacefigure \page \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \define[3

Re: [NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Wolfgang Schuster
figure[location=here] \externalfigure[\getvariable{talk}{picture}] \stopplacefigure \page \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \setvariables[talk]% [speakername={Hacker}, title={Up to date hacking}, picture=hacker.jpg ] You’re missing a coma after “picture=hacker.jpg” which r

Re: [NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Otared Kavian
able{talk}{picture}} \placefigure[here][]{} {\externalfigure[\authorpicture]} \page \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \setvariables[talk]% [speakername={Hacker}, title={Up to date hacking}, picture=hacker.jpg ]

Re: [NTG-context] Registers and getparameters

2018-01-23 Thread Hans Hagen
\NC\NR   \NC Room    \EQ \getvariable{talk}{room}    \NC\NR   \HL   \stoptabulate \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \showframe[text][text] \starttext \setvariables   [talk]   [speakername={Gauss},    title={Remarks on Number Theory},    time={10:30},  

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
tared Kavian <mailto:ota...@gmail.com> 22. Januar 2018 um 21:39 >> Hi Wolfgang, >> >> Thank you very much for your reply and your wise advice to use the >> \setvariable mechanism. It is indeed much more convenient to use for what I >> intend to do. >> >

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Wolfgang Schuster
Otared Kavian <mailto:ota...@gmail.com> 22. Januar 2018 um 21:39 Hi Wolfgang, Thank you very much for your reply and your wise advice to use the \setvariable mechanism. It is indeed much more convenient to use for what I intend to do. The only remaining problem is that when several

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
Hi Wolfgang, Thank you very much for your reply and your wise advice to use the \setvariable mechanism. It is indeed much more convenient to use for what I intend to do. The only remaining problem is that when several talks are included in my file (in the following example there three of them

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Wolfgang Schuster
e{talk}{speakername} \NC\NR \NC Title \EQ \getvariable{talk}{title} \NC\NR \NC Time\EQ \getvariable{talk}{time}\NC\NR \NC Room\EQ \getvariable{talk}{room}\NC\NR \HL \stoptabulate \stopbuffer \setvariable{talk}{set}{\getbuffer[pagetalk]} \showframe[text

Re: [NTG-context] Access to Intermediate Document after Pre-processing

2016-08-08 Thread Hans Hagen
) \setvariable and \getvariable (to reuse some text in different places) So, does ConTeXt run some sort of pre-processing step that processes all of the above and which results in an intermediate document that is then type-set? And is it possible to only run this pre-processing step and get access

Re: [NTG-context] Access to Intermediate Document after Pre-processing

2016-08-08 Thread Hans Hagen
paragraphs depending on some conditions) \setvariable and \getvariable (to reuse some text in different places) are you sure that there are no mechanism already built in context that can be of help? (of just lua) So, does ConTeXt run some sort of pre-processing step that processes all

Re: [NTG-context] Access to Intermediate Document after Pre-processing

2016-08-03 Thread Henri Menke
phs depending on some > conditions) > \setvariable and \getvariable (to reuse some text in different places) > > So, does ConTeXt run some sort of pre-processing step that processes all of > the above and which results in an intermediate document that is then > type-set?

[NTG-context] Access to Intermediate Document after Pre-processing

2016-08-03 Thread Malte Stien
Hi all, I am working with a reasonably complex document structure, where I make heavy use of the following constructs \input (to import a number of source files) \if and \newif (to switch between different paragraphs depending on some conditions) \setvariable and \getvariable (to reuse some

Re: [NTG-context] which is the best/right element for elements in cover and title pages?

2016-01-26 Thread Wolfgang Schuster
lepage}{title} \stopfont \stopmakeup \stopsetups \setvariable{titlepage}{set}{\texsetup{titlepage}} \starttext \setvariables[titlepage][title=Titlepages for dummies] \stoptext Wolfgang ___ If your qu

Re: [NTG-context] anchor points for \inmargin

2015-11-12 Thread DesdeChaves
> > \defineframed[infobox][frame=off,width=max,background=infolayer,setups=infolayer:place] > > \define[2]\Info > {\par >\setvariable{infotext}{points}{#2}% >\infobox[height=#1]{}} > > \starttext > > \startitemize[n] > \starthead{Question 1} >

Re: [NTG-context] anchor points for \inmargin

2015-11-12 Thread Wolfgang Schuster
riable{infotext}{points}}} \stopsetups \defineframed[infobox][frame=off,width=max,background=infolayer,setups=infolayer:place] \define[2]\Info {\par \setvariable{infotext}{points}{#2}% \infobox[height=#1]{}} \starttext \startitemize[n] \starthead{Question 1} \Info{9cm}{20 \p

Re: [NTG-context] \processcommalist and load values into macros.

2013-06-04 Thread Wolfgang Schuster
{test}{postcode} \NC\NR \stoptabulate \page \stopsetups \setvariable{test}{set}{\setups{test}} \starttext \setvariables [test] [firstname=John, surname=Smith, city=Prague, street=Václavské náměstí 20, postcode=11500] \setvariables [test] [firstname=Peter, surname

Re: [NTG-context] \processcommalist and load values into macros.

2013-06-04 Thread Jaroslav Hajtmar
}{city} \NC\NR \NC STREET\EQ \getvariable{test}{street}\NC\NR \NC POSTCODE \EQ \getvariable{test}{postcode} \NC\NR \stoptabulate \page \stopsetups \setvariable{test}{set}{\setups{test}} \starttext \setvariables [test] [firstname=John, surname=Smith, city

[NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Jaroslav Hajtmar
to [myotherspace] namespace? %\setvariable[myotherspace][\getallvariablesfrom[myfirstnamespace]] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Wolfgang Schuster
) and \myfirstnamespacevalue (text) % Assign all the variables of [myfirstnamespace] namespace to [myotherspace] namespace? %\setvariable[myotherspace][\getallvariablesfrom[myfirstnamespace]] \stoptext There is no way to access the list with the parameters from \setvariables but the question why you want

Re: [NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Jaroslav Hajtmar
to [myotherspace] namespace? %\setvariable[myotherspace][\getallvariablesfrom[myfirstnamespace]] \stoptext There is no way to access the list with the parameters from \setvariables but the question why you want a command for each variable. In MkIV direct use of values in the form \myfirstnamespaceid

[NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread Wagner Macedo
Hello, I'm relatively quite new to TeX world. This is my first message to list. I hope you understand me, English isn't my mother language. I'm trying to use a variable set by \setvariable in Lua. I tried some combinations, based on manual but I couldn't succeed. The code below exemplifies what

Re: [NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread Wolfgang Schuster
Am 05.01.2012 um 15:49 schrieb Wagner Macedo: Hello, I'm relatively quite new to TeX world. This is my first message to list. I hope you understand me, English isn't my mother language. I'm trying to use a variable set by \setvariable in Lua. I tried some combinations, based on manual

Re: [NTG-context] CLD: context.getvariable as Lua variable

2012-01-05 Thread Wagner Macedo
new to TeX world. This is my first message to list. I hope you understand me, English isn't my mother language. I'm trying to use a variable set by \setvariable in Lua. I tried some combinations, based on manual but I couldn't succeed. The code below exemplifies what I wanted to do

Re: [NTG-context] Indenting in footnotes

2011-08-15 Thread Wolfgang Schuster
is this: \startbuffer[footnote:a] Note A \stopbuffer \startsetups[footnote:b] Note B \stopsetups %\setvariables[footnote][c={Note C}] \setvariable{footnote}{c}{Note C} \starttext A\footnote{\getbuffer[footnote:a]} B\footnote{\texsetup{footnote:b}} C\footnote{\getvariable{footnote}{c}} \stoptext You can write

Re: [NTG-context] Indenting in footnotes

2011-08-15 Thread Cecil Westerhof
\startsetups[footnote:b] Note B \stopsetups %\setvariables[footnote][c={Note C}] \setvariable{footnote}{c}{Note C} \starttext A\footnote{\getbuffer[footnote:a]} B\footnote{\texsetup{footnote:b}} C\footnote{\getvariable{footnote}{c}} \stoptext That is already a lot better as it was first

[NTG-context] [PATCH] small corrections for the ConTeXt-correspondence manual

2010-08-15 Thread Paul Menzel
} and \type{\setupletter}. \setup[setupletter:value]\flushatnextpar{\index{\tex{setupletter}}} The first command \type{\setlettervalue} takes two commands like \type{\setvalue} or -\type{\setvariable} and could be used like: +\type{\setvariable}. \starttyping \setlettervalue{firstname} {Mike

Re: [NTG-context] ntRe: Table head

2010-06-14 Thread Wolfgang Schuster
Am 14.06.10 15:46, schrieb Vyatcheslav Yatskovsky: Wolfgang, thank you very much! But after all the struggle I see ugly bug. Table number is increased after every page split! %) Minimal example attached (0.tex) Dunno but you can replace the texts (\sps etc.) with the \setvariable(s

Re: [NTG-context] status of minimals

2009-09-12 Thread Hans Hagen
. in tex.rb patch aroun dline 678: else report(unable to make format due to lack of permissions) texformatpath = '' setvariable('error','no permissions to write') end if not mpsformats then # we want

Re: [NTG-context] status of minimals

2009-09-12 Thread Mojca Miklavec
way as luatex format? That would be the best solution. in tex.rb patch aroun dline 678:            else                report(unable to make format due to lack of permissions)                texformatpath = ''                setvariable('error','no permissions to write')            end

Re: [NTG-context] setvalue/setvariable

2009-02-05 Thread Wolfgang Schuster
}}} \setvalue{myfunction:1}{\medspace dog } \setvalue{myfunction:2}{\medspace cat } \setvalue{myfunction:default}{\ldots} Hello, I'm working now a lot with \setvariable and \getvariable. What are the advantages/disadvantages of set/get-value over set/get-variable? It's more a style decision, set

[NTG-context] setvalue/setvariable (was: Re: Remove leading spaces)

2009-02-05 Thread Peter Münster
} \setvalue{myfunction:2}{\medspace cat } \setvalue{myfunction:default}{\ldots} Hello, I'm working now a lot with \setvariable and \getvariable. What are the advantages/disadvantages of set/get-value over set/get-variable? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact

Re: [NTG-context] setvalue/setvariable

2009-02-05 Thread Wolfgang Schuster
}}} \setvalue{myfunction:1}{\medspace dog } \setvalue{myfunction:2}{\medspace cat } \setvalue{myfunction:default}{\ldots} I'm working now a lot with \setvariable and \getvariable. What are the advantages/disadvantages of set/get-value over set/get-variable? It's more a style decision, set

[NTG-context] Custom Section / Table of contents inside a table

2008-08-08 Thread Demian Gutierrez
using the template. I've tried a lot of combinations of \setvariable, \setvalue, and several \doifSOMETHING, but at this point it only works if the author omits the \bNombreCampoGUI \eNombreCampoGUI pair, but if he puts the commands, but left the content empty, then I don't get EMPTY as result

Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Elliot Clifton
Hi Peter, Thanks for your reply. I think I may have misunderstood the variable section on the wiki. I been using \setvariable to both declare and assign variables from my component files. When I should have been declaring them in the environment file first, right? \setvariable[namespace][key

Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Aditya Mahajan
On Sun, 27 May 2007, Elliot Clifton wrote: Hi Peter, Thanks for your reply. I think I may have misunderstood the variable section on the wiki. I been using \setvariable to both declare and assign variables from my component files. When I should have been declaring them in the environment

Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Hans Hagen
Aditya Mahajan wrote: On Sun, 27 May 2007, Elliot Clifton wrote: Hi Peter, Thanks for your reply. I think I may have misunderstood the variable section on the wiki. I been using \setvariable to both declare and assign variables from my component files. When I should have been declaring

Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Peter Rolf
Elliot Clifton schrieb: Hi Peter, Thanks for your reply. I think I may have misunderstood the variable section on the wiki. I been using \setvariable to both declare and assign variables from my component files. When I should have been declaring them in the environment file first, right

Re: [NTG-context] Identifying context files

2006-02-03 Thread Hans Hagen
when /^\%/o then # next when /\\(starttekst|stoptekst|startonderdeel|startdocument|startoverzicht)/o then setvariable('texformats','nl') ; break when /\\(stelle|verwende|umgebung|benutze)/o

Re[2]: [NTG-context] High level user macro (howto?)

2004-06-28 Thread Giuseppe Bilotta
Monday, June 28, 2004 Hans Hagen wrote: There is \setvariables [yournamespace] [yourvar=yourval] which operates independent of the language interface \getvariable{yournamespace}{yourvar} can be used to pick up a var What is the difference between setvariable and getparameters

Re[2]: [NTG-context] High level user macro (howto?)

2004-06-28 Thread Giuseppe Bilotta
Monday, June 28, 2004 Hans Hagen wrote: Giuseppe Bilotta wrote: What is the difference between setvariable and getparameters? the second one does interface translations Sorry, I meant rawgetparameters -- Giuseppe Oblomov Bilotta ___ ntg